var Final = function (game) {

  this.create = function () {

    var bg = game.add.sprite(0, 0, 'final');

    var retry = game.add.button(1080, 625, imgs['button'], onSubmit, this, 2, 1, 0);
    retry.name = 'retry';
    retry.width = 160;
    retry.height = 55;

    var submit = game.add.button(1250, 625, imgs['button'], onSubmit, this, 2, 1, 0);
    submit.name = 'submit';
    submit.width = 160;
    submit.height = 55;

    function onSubmit(arg) {
      if (arg.name === 'submit') {
        game.goState(1);
      } else {
        game.goState('back');
      }
    }
  };
}
